/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package controlador;

import java.awt.Canvas;
import java.awt.Image;
import java.awt.Toolkit;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.imageio.ImageIO;

/**
 *
 * @author DAVINCI
 */
public class ImageAdmin {

    private static BufferedImage img=null;

    public static BufferedImage Cargar(String path) {
        
        
        try {
            img = ImageIO.read(new File(path));
        } catch (IOException ex) {
            Logger.getLogger(ImageAdmin.class.getName()).log(Level.SEVERE, null, ex);
        }
        return img;
    }
}
